<?php

class News_IndexController extends Zend_Controller_Action
{

	protected $_catalogModel;
	
    public function init()
    {
    	$this->_catalogModel = new News_Model_Catalog();    
    }

    public function indexAction()
    {
        $categories = $this->_catalogModel->getCategoriesByParentId($this->_request->getParam('newId',null));
        $this->view->categories = $categories;
    }


}

